//
//  GRJLoadImageManager.h
//  GRJTolCayFrwk
//
//  Created by apple on 2017/3/1.
//  Copyright © 2017年 Global Barter. All rights reserved.
//
// 整个app加载图片，全部使用这个类去加载

#import <Foundation/Foundation.h>
#import "UIImageView+WebCache.h"

//typedef void(^SDWebImageCompletionBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL);


//SDWebImageCompletionBlock----->>>SDExternalCompletionBlock

@interface GRJLoadImageManager : NSObject


/**
 *  加载图片
 *
 *  @param urlStr            图片url
 *  @param placeholder    图片占位图片
 *  @param completedBlock 加载完成，回调
 */
+ (void)grj_setImageWithURL:(NSString *)urlStr placeholderImage:(UIImage *)placeholder   progress:(SDWebImageDownloaderProgressBlock)progressBlock completed:(SDExternalCompletionBlock)completedBlock imageView:(UIImageView *)imageView;

@end
